SET(GNASH_FOUND 0)

INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(GNASH gnash)

IF(GNASH_FOUND)
	SET(GNASH_INCLUDE_DIRS
		${GNASH_INCLUDE_DIRS}
		)

	SET(GNASH_LIB_DIRS
		${GNASH_LIBRARY_DIRS}
		)

	SET(GNASH_LIBS
		${GNASH_LIBRARIES}
		)

	SET(GNASH_FOUND 1)

	ADD_DEFINITIONS(-DHAVE_GNASH)

ENDIF(GNASH_FOUND)

